|
The Smart ComboBox Component > FSmartComboBoxClass.addItem(label,data,persist) |
FSmartComboBox.addItem(label,data [,persist])
Availability
Macromedia Flash Player 6
Usage
myCombo.addItem(label,data,persist);
Parameters
|
The label to associate with the item. |
|
The data to associate with the item. |
|
Boolean; When this is set to true, the item will be stored across sessions. When this is set to false, the item will not be stored. This parameter is optional, and defaults to false. |
Returns
Nothing.
Description
Adds an item to the end of the history of the ComboBox.
Example
The following example shows how to add an item to the end of the history. The item will be persistent and stored across sessions. It will be displayed visually at the bottom of the drop-down box of the component.
myCombo.addItem("Item 1","1",true);
See also